package com.wdd.recoveryvehicle.menuItem.controller;

import com.wdd.common.Result.Result;
import com.wdd.common.Result.ResultUtil;
import com.wdd.recoveryvehicle.menuItem.bean.MenuItemVB;
import com.wdd.recoveryvehicle.menuItem.service.impl.MenuItemServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 菜单列表
 *
 * @author globalMr
 */
@RestController
@RequestMapping("/menuItem")
public class MenuItemController {

    @Autowired
    private MenuItemServiceImpl menuItemService;

    /**
     * 查询菜单列表
     * @return
     */
    @RequestMapping(value = "/selectMenuItem", method = RequestMethod.GET)
    public Result selectMenuItem() {
        List<MenuItemVB> menuItemVBS = menuItemService.selectMenuItem();
        return ResultUtil.success(menuItemVBS);
    }




}
